package com.control.dao;

import com.control.entity.Contact;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ContactMapper {
    //分页
    List<Contact> getAll(@Param("from") int from,
                         @Param("limit") Integer limit);

    //总页数
    int getConCount();

    //新增
    int  addContact(Contact contact);

    //修改
    int updateContact(Contact contact);

    //传值查看
    Contact getById(Long id);
}
